#include<iostream>
using namespace std;
#include<omp.h>

int main(){

	double sum=0;
	#pragma omp parallel
	{
		#pragma omp for
		for(int i=1;i<=100;i++){
			//#pragma omp atomic
			sum += i;
		}
	}
	cout<<" Total sum from 1 to 100 = "<<sum<<endl;
	return 0;
}
